<?php

include_once($_SERVER['DOCUMENT_ROOT'] . "/RecJP/class/class.AuthHelper.php");
include_once($_SERVER['DOCUMENT_ROOT'] . "/RecJP/Common.php");

session_start();

$auth = new AuthHelper();
$uname = Common::is_empty($_POST["uname"], 0);
$upwd = Common::is_empty($_POST["upwd"], 0);

$r = $auth->Login($uname, $upwd);
header('Content-type: application/json');
$arr = array();
$arr["returnvalue"] = $r;
echo json_encode($arr);
?>